package com.atguigu.gulimall.seckill.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.seckill.feign.fallback.ProductFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *  商品远程服务
 * @author xiaoping
 */
@FeignClient(value = "gulimall-product",fallback = ProductFeignServiceFallBack.class)
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

}
